package com.mycompany.panels;



import java.util.Date;

import org.apache.wicket.MarkupContainer;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;

import com.mycompany.components.DateChooser;


/**
 * DateChooserPanel
 * <p/>
 * Created by: Andrew Lombardi
 * Copyright 2006 Mystic Coders, LLC
 */
public class DateChooserPanel extends Panel {

/*
    public DateChooserPanel(MarkupContainer parent, String id) {
        super(parent, id);
//        setModel(new Date());
    }
*/

    @SuppressWarnings("unchecked")
    public DateChooserPanel(MarkupContainer parent, String id, IModel<Date> model) {
        super(id, model);

        add(new DateChooser("date", model).setRenderBodyOnly( true ));
    }
}
